Text + randomchar dosn't work [JavaScript]
        Posted  
        
            by 
                user558773
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user558773
        
        
        
        Published on 2010-12-31T19:48:29Z
        Indexed on 
            2010/12/31
            19:54 UTC
        
        
        Read the original article
        Hit count: 154
        
<script>
function makeid()
{
var text = "var text = document.write(lastNumber);";
var possible = "*+-/";
for( var i=0; i < 1; i++ )
document.write(lastNumber + possible.charAt(Math.floor(Math.random() * possible.length));
return text;
}
document.write(makeid(1))</script>
How do i make this to type for ex: 23* 45- 13/ and so on. What is wrong? It just show me 2 numbers and no char after.
© Stack Overflow or respective owner